public class AuctionProtocol extends Protocol
| Modifier and Type | Field and Description |
|---|---|
protected double |
ALLOWED_UTILITY_DEVIATION |
int |
gui_nego_time |
int |
non_gui_nego_time |
domain, negoThread, sessionNr, stopNegotiation, totalSessions, tournamentRunner| Constructor and Description |
|---|
AuctionProtocol(AgentRepItem[] agentRepItems,
ProfileRepItem[] profileRepItems,
java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams,
int tSR) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateTheoreticalOutcome() |
protected static AuctionProtocol |
createSession(Tournament tournament,
ProfileRepItem profileCenter,
ProfileRepItem profileSeller1,
ProfileRepItem profileSeller2) |
java.lang.String |
getName() |
NegotiationOutcome |
getNegotiationOutcome() |
static java.util.ArrayList<Protocol> |
getTournamentSessions(Tournament tournament) |
void |
run() |
protected AuctionBilateralAtomicNegoSession |
runNegotiationSession(Agent agentA,
Agent agentB,
AgentRepItem agentARepItem,
AgentRepItem agentBRepItem,
java.lang.String agentAname,
java.lang.String agentBname,
ProfileRepItem profileRepItemA,
ProfileRepItem profileRepItemB,
UtilitySpace spaceA,
UtilitySpace spaceB,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams)
do test run of negotiation session.
|
protected AuctionBilateralAtomicNegoSession |
runNegotiationSession(AgentRepItem agentARepItem,
AgentRepItem agentBRepItem,
java.lang.String agentAname,
java.lang.String agentBname,
ProfileRepItem profileRepItemA,
ProfileRepItem profileRepItemB,
UtilitySpace spaceA,
UtilitySpace spaceB,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams,
java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams) |
addNegotiationEventListener, fireBilateralAtomicNegotiationSessionEvent, fireLogMessage, fireNegotiationActionEvent, getAgentName, getAgentParams, getAgentRepItem, getAgentUtilitySpaces, getDomain, getNegotiationEventListeners, getNumberOfAgents, getProfileRepItems, getSessionNumber, getTotalSessions, hashCode, loadAgentsUtilitySpaces, removeNegotiationEventListener, setTournamentRunner, startSession, stopNegotiation, toStringprotected final double ALLOWED_UTILITY_DEVIATION
public int non_gui_nego_time
public int gui_nego_time
public AuctionProtocol(AgentRepItem[] agentRepItems, ProfileRepItem[] profileRepItems, java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams, int tSR) throws java.lang.Exception
java.lang.Exceptionpublic NegotiationOutcome getNegotiationOutcome()
getNegotiationOutcome in class Protocolprotected void calculateTheoreticalOutcome()
public void run()
public static java.util.ArrayList<Protocol> getTournamentSessions(Tournament tournament) throws java.lang.Exception
java.lang.Exceptionprotected static AuctionProtocol createSession(Tournament tournament, ProfileRepItem profileCenter, ProfileRepItem profileSeller1, ProfileRepItem profileSeller2) throws java.lang.Exception
java.lang.Exceptionprotected AuctionBilateralAtomicNegoSession runNegotiationSession(Agent agentA, Agent agentB, AgentRepItem agentARepItem, AgentRepItem agentBRepItem, java.lang.String agentAname, java.lang.String agentBname, ProfileRepItem profileRepItemA, ProfileRepItem profileRepItemB, UtilitySpace spaceA, UtilitySpace spaceB, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams) throws java.lang.Exception
nr - is the sessionTestNumberjava.lang.Exceptionprotected AuctionBilateralAtomicNegoSession runNegotiationSession(AgentRepItem agentARepItem, AgentRepItem agentBRepItem, java.lang.String agentAname, java.lang.String agentBname, ProfileRepItem profileRepItemA, ProfileRepItem profileRepItemB, UtilitySpace spaceA, UtilitySpace spaceB, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentAparams, java.util.HashMap<AgentParameterVariable,AgentParamValue> agentBparams) throws java.lang.Exception
java.lang.Exception